package com.uisian.controller;

import com.uisian.pojos.Py;
import com.uisian.service.DgService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("duanxing")
public class DgController {
    @Autowired
    private DgService dgService;
    //订购短信
    @GetMapping("dg")
    public String dg(@RequestBody Py py){
       return dgService.dg(py);
    }
}
